package org.cos.generation.epda.action;

public class StackAction implements Action {
	
	public enum Operation implements Action.Operation {
		PUSH,
		POP;
	}
	
	private Operation operation;
	
	private Object value;
	
	public StackAction(StackAction.Operation operation, Object value) {
		this.operation = operation;
		this.value = value;
	}

	public Operation getOperation() {
		return operation;
	}

	public Object getValue() {
		return value;
	}
	
	public void setValue(Object value) {
		this.value = value;
	}

	public Integer getTarget() {
		return null;
	}
	
	public ActionType getType() {
		return ActionType.STACK;
	}
	
}
